package top.chengdongqing.mishop.repositories

import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
import top.chengdongqing.mishop.entities.ProductCategory

interface ProductCategoryRepository : JpaRepository<ProductCategory, Int> {

    fun findAllByParentId(parentId: Int, pageable: Pageable): List<ProductCategory>
}